import request from '../utils/request';

// 获取列表
export function getListMonth(data) {
    return request({
        url: '/SalesHandRecode/getListMonth?pageNum=' + data.pageIndex + '&pageSize=' + data.pageSize,
        method: 'post',
        data: data
    });
}
// 获取列表
export function getList(data) {
    return request({
        url: '/SalesHandRecode/getList?pageNum=' + data.pageIndex + '&pageSize=' + data.pageSize,
        method: 'post',
        data: data
    });
}
// 添加修改
export function addUpdate(data) {
    return request({
        url: '/SalesHandRecode/addUpdate',
        method: 'post',
        data: data
    });
}
// 获取详情
export function getInfo(id) {
    return request({
        url: '/SalesHandRecode/getInfo?id='+id,
        method: 'get',
    });
}
// 删除
export function del(data) {
    return request({
        url: '/SalesHandRecode/del',
        method: 'post',
        data: data
    });
}
// 删除根据时间
export function delByTime(data) {
    return request({
        url: '/SalesHandRecode/delByTime',
        method: 'post',
        data: data
    });
}
